package singleton;

import singleton.actors.MySingleton;

public class Main {
    public static void main(String[] args){
        System.out.println("Start...");
        MySingleton obj1 = MySingleton.getInstance();
        MySingleton obj2 = MySingleton.getInstance();
        if(obj1==obj2){
            System.out.println("obj1和obj2是相同的实例。");
        }else{
            System.out.println("obj1和obj2是不同的实例。");
        }
        System.out.println("End...");
    }
}
